package jus.aoo.lisp;

public class Toplevel extends Subr{
	public static Toplevel TOPLEVEL = new Toplevel();

	@Override
	public Sexpr apply(Scons e) throws LispException {
		while (true) {
			try {
				Console.println(Reader.read().eval().toString());
			} catch (ParseException e1) {
				Console.println("Erreur de parsage");
			} catch (LispException e1) {
				Console.println(e1.getMessage());
			} catch (Exception e1) {
				Console.println("unexpectedException"); e1.printStackTrace();
			} finally {}
		}
		
		
	}
	
	
	
}
